import request from "@/utils/request";
import { download, downloadOfGet } from "@/utils/request";
// init- tab
export function findForevastDeviceConfigList(params) {
  return request({
    url: "/forecast/ForecastDeviceConfig/findForevastDeviceConfigList",
    method: "get",
    params,
  });
}
// 获取某个设备的故障预测信息
export function findDeviceResultByDeviceCode(params) {
  return request({
    url: "/forecast/ForecastDeviceConfig/findDeviceResultByDeviceCode",
    method: "get",
    params,
  });
}
export function findDeviceResultByDeviceCodeNew(params) {
  return request({
    url: "/forecast/ForecastDeviceConfig/findDeviceResultByDeviceCodeNew",
    method: "get",
    params,
  });
}

// 弹窗表格
export function findDeviceModelByDeviceCode(params) {
  return request({
    url: "/forecast/forecastModelBasic/findDeviceModelByDeviceCode",
    method: "get",
    params,
  });
}
// 弹窗导入
export function ForecastDeviceConfig(data) {
  return request({
    url: "/forecast/ForecastDeviceConfig",
    method: "post",
    data,
  });
}

// 开始结束预测

export function doForecast(params) {
  return request({
    url: "/forecast/ForecastDeviceConfig/updateForevastStatus",
    method: "get",
    params,
  });
}

// 手动 更新
export function findDeviceResultByParams(params) {
  return request({
    url: "/forecast/ForecastDeviceConfig/findDeviceResultByParams",
    method: "get",
    params,
  });
}
